<script>
    function del(obj) {
        swal({
            title: '确定删除吗？',
            text: '一旦删除,你将无法恢复它！',
            type: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: '确定删除！',
        }).then(function (value) {
            if (value.value) {
                $(obj).next('form').trigger('submit');
            }
        })
    }
</script>
